<template>
	<view class="bg-w">
		<unio2o-tab @select="selectAct" :tabs="tabs" :selectIndex="selectIndex"></unio2o-tab>
		<scroll-view class="log-scroll" scroll-y="true">
			<view class="pd30">
				<view class="mb30">
					<view class="flex alcenter space">
						<view>
							<view class="ft16 ftw600 text-main">签到奖励</view>
							<view class="ft14 text-notice mt20">2019-09-12 12:00</view>
						</view>
						<view class="ft18 ftw600 text-default">+2</view>
					</view>
					<view class="line mt30"></view>
				</view>
				
				<view class="mb30">
					<view class="flex alcenter space">
						<view>
							<view class="ft16 ftw600 text-main">签到奖励</view>
							<view class="ft14 text-notice mt20">2019-09-12 12:00</view>
						</view>
						<view class="ft18 ftw600 text-default">+2</view>
					</view>
					<view class="line mt30"></view>
				</view>
				
				<view class="mb30">
					<view class="flex alcenter space">
						<view>
							<view class="ft16 ftw600 text-main">签到奖励</view>
							<view class="ft14 text-notice mt20">2019-09-12 12:00</view>
						</view>
						<view class="ft18 ftw600 text-default">+2</view>
					</view>
					<view class="line mt30"></view>
				</view>
				
				<view class="mb30">
					<view class="flex alcenter space">
						<view>
							<view class="ft16 ftw600 text-main">签到奖励</view>
							<view class="ft14 text-notice mt20">2019-09-12 12:00</view>
						</view>
						<view class="ft18 ftw600 text-default">+2</view>
					</view>
					<view class="line mt30"></view>
				</view>
				
				<view class="mb30">
					<view class="flex alcenter space">
						<view>
							<view class="ft16 ftw600 text-main">签到奖励</view>
							<view class="ft14 text-notice mt20">2019-09-12 12:00</view>
						</view>
						<view class="ft18 ftw600 text-default">+2</view>
					</view>
					<view class="line mt30"></view>
				</view>
				
			</view>
		</scroll-view>	
	</view>
</template>

<script>
	import unio2oTab from '@/components/base/tab/tab.vue';
	export default{
		components:{
			unio2oTab
		},
		data(){
			return {
				selectIndex:0,
				tabs:[
					{name:'全部'},
					{name:'获得'},
					{name:'使用'}
				],
			}
		},methods:{
			selectAct(e){
			   let index = parseInt(e);
			   this.selectIndex = index;		
			}
		}
	}
</script>

<style>
	.log-scroll{
		height: calc(100vh - 100rpx);
	}
</style>